package com.classify.system.controller;

import com.classify.system.domain.SgAttributes;
import com.classify.system.domain.SgClassify;
import com.classify.system.service.ISgAttributesService;
import com.classify.system.service.ISgClassifyService;
import com.shopgoods.common.core.web.domain.AjaxResult;
import com.shopgoods.common.core.web.page.TableDataInfo;
import com.shopgoods.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName SgAttributesController
 * @Description 描述
 * @Author GYW
 * @Date 2024-11-15 10:31
 */
@RestController
@RequestMapping("/attributes")
public class SgAttributesController {

    @Autowired
    private ISgAttributesService attributesService;


    /**
     * 查询商品分类列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        return AjaxResult.success(attributesService.findlist());
    }



}
